how to reload page on button click in javascript

155

how to reload page on button click in javascript -

<button type="button" onClick="refreshPage()">Close</button>

<script>
function refreshPage(){
    window.location.reload();
} 
</script>

reload pageon button click -

<button type="button" onClick="window.location.reload();">Close</button>

Comments

Submit
0 Comments